package com.kkb.mybatis.config;

import java.io.InputStream;
import java.io.Reader;

/**
 * author: zsl
 * date: 2019/10/10 10:45
 * Description:
 */
public class Resources {

    /**
     * 根据 路径来读取流
     * @param resources
     * @return
     */
    public static InputStream getResourceAsStream(String resources){
        return Resources.class.getClassLoader().getResourceAsStream(resources);
    }

    /**
     * 根据 路径来读取流
     * @param resources
     * @return
     */
    public static Reader getResourceAsReader(String resources){
        return null;
    }
}